import {request} from '@/utils/request.js'

//获取轮播图图片
export const getHomeBanner = () => {
	return request({
		url: '/homeBanner'
	})
}

//每日推荐图片 /randomWall
export const getRandomWall = () => {
	return request({
		url: "/randomWall"
	})
}

//首页分类
export const getClassifyApi = (data={}) => {
	return request({
		url:"/classify",
		data
	})
}

//获取分类列表数据
export const getWallListApi = (data={}) => {
	return request({
		url:"/wallList",
		data
	})
}

//对壁纸评分setupScoreApi
export const setupScoreApi = (data={}) => {
	return request({
		url:"/setupScore",
		data
	})
}

//下载壁纸的接口用于我的页面里的下载历史查看功能
export const downloadWallApi = (data={}) => {
	return request({
		url:"/downloadWall",
		data
	})
}

//获取一个壁纸
export const detailWallApi = (data={}) => {
	return request({
		url:"/detailWall",
		data
	})
}

//获取个人信息
export const userInfoApi = (data={}) => {
	return request({
		url:"/userInfo",
		data
	})
}

//我的评分/下载列表
export const userWallListApi = (data={}) => {
	return request({
		url:"/userWallList",
		data
	})
}

//搜索壁纸
export const searchWallApi = (data={}) => {
	return request({
		url:"/searchWall",
		data
	})
}